package cn.gorit.dto.content;

import java.io.Serializable;

/**
 * @version v1.0
 * @Classname BlogDto
 * @Description 内容更新传输层对象
 * @Author CodingGorit
 * @Created on 2021/4/6 15:40
 * @IDLE IntelliJ IDEA
 **/
public class BlogUpdateDto implements Serializable {

    // 博客的唯一 ID
    private String blogId;
    // 点赞量
    private Integer blogLikes;
    // 阅读量
    private Integer blogRead;
    // 置顶
    private Integer isTop;
    // 收藏数量
    private Integer blogCollection;
    // 评论数量
    private Integer blogComment;
    // 创建时间
    private String createdTime;
    // 更新时间
    private String updateTime;
    // 文章所有者
    private String userId;

    private Integer version;

    public String getBlogId() {
        return blogId;
    }

    public void setBlogId(String blogId) {
        this.blogId = blogId;
    }

    public Integer getBlogLikes() {
        return blogLikes;
    }

    public void setBlogLikes(Integer blogLikes) {
        this.blogLikes = blogLikes;
    }

    public Integer getBlogRead() {
        return blogRead;
    }

    public void setBlogRead(Integer blogRead) {
        this.blogRead = blogRead;
    }

    public Integer getBlogCollection() {
        return blogCollection;
    }

    public void setBlogCollection(Integer blogCollection) {
        this.blogCollection = blogCollection;
    }

    public Integer getBlogComment() {
        return blogComment;
    }

    public void setBlogComment(Integer blogComment) {
        this.blogComment = blogComment;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    @Override
    public String toString() {
        return "BlogDto{" +
                "blogId='" + blogId + '\'' +
                ", blogLikes=" + blogLikes +
                ", blogRead=" + blogRead +
                ", isTop=" + isTop +
                ", blogCollection=" + blogCollection +
                ", blogComment=" + blogComment +
                ", createdTime='" + createdTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", userId='" + userId + '\'' +
                ", version=" + version +
                '}';
    }
}
